package com.qigao.mall.jdbc.mapper;

import com.qigao.mall.commons.dto.TradeStaticCondDto;
import com.qigao.mall.jdbc.model.TbTradeStatic;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface TbTradeStaticMapper extends AbstractTbTradeStaticMapper{

    TbTradeStatic selectLastTrade(@Param("userNo") String userNo, @Param("orderDate")Date orderDate);

    TbTradeStatic selectByUniqIndex(@Param("orderDate")Date orderDate, @Param("userNo")String userNo);

    void addStaticData(TbTradeStatic tbTradeStatic);

    List<TbTradeStatic> selectPageByCond(TradeStaticCondDto tradeStaticCondDto);

    void updateBatch(List<TbTradeStatic> tbTradeStatics);
}